function handler2() {
  console.log("想用install方法挂载全局方法");
}

export default {
  install(Vue) {
    Vue.handler2 = handler2;
    Vue.mixin({
      created() {
        this.$handler2 = handler2;
      },
    });
  },
  //用install方法挂载全局方法
};
